package com.kcht.sylyg08.service.model;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * @Package:        com.kcth.sylyg08.rest
 * @Description:    标签信息对应的pojo
 * @Author:         lenovo
 * @CreateDate:     2019/5/14 16:00
 */
public class TagInfo {
    /** 发现时间 */
    /** 第一次用的Date类型的时间，可是解析成json串的时候有问题，发现解析之后js不认识字符串了 */
    private Date discoverTime;
    /** 发现地址 */
    private Map<String, String> discoverLocation;
    private String tagId;
    /** epc编号 */
    private String epc;
    /** 一个边界条件内读到的次数 */
    private Integer sightingCount;
    private Map<String, String> map = new HashMap<>();

    public Date getDiscoverTime() {
        return discoverTime;
    }

    public void setDiscoverTime(Date discoverTime) {
        this.discoverTime = discoverTime;
    }

    public Map<String, String> getDiscoverLocation() {
        return discoverLocation;
    }

    public void setDiscoverLocation(Map<String, String> map) {
        this.discoverLocation = map;
    }

    public String getTagId() {
        return tagId;
    }

    public void setTagId(String tagId) {
        this.tagId = tagId;
    }

    public String getEpc() {
        return epc;
    }

    public void setEpc(String epc) {
        this.epc = epc;
    }

    public Map<String, String> getMap() {
        return map;
    }

    public void setMap(String name, String value) {
        map.put(name, value);
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public Integer getSightingCount() {
        return sightingCount;
    }

    public void setSightingCount(Integer sightingCount) {
        this.sightingCount = sightingCount;
    }

    @Override
    public String toString() {
        return "TagInfo{" +
                "discoverTime=" + discoverTime +
                ", discoverLocation=" + discoverLocation +
                ", tagId='" + tagId + '\'' +
                ", epc='" + epc + '\'' +
                ", sightingCount=" + sightingCount +
                ", map=" + map +
                '}';
    }
}
